﻿using Architecture.Repository.Interface.Traceability;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Traceability.Domain.DeepProcessingDomain;
using Traceability.Domain.SupplierDomain;

namespace Architecture.Repository.Impl.Traceability
{
    public class PackagingMaterialsRepository : BaseRepository<PackagingMaterials>, IPackagingMaterialsRepository
    {
        public PackagingMaterialsRepository(EFCoreContext context) : base(context)
        {
        }

        public async Task<int> AddPackagingMaterials(PackagingMaterials packagingMaterials)
        {
            return await base.AddAsync(packagingMaterials);
        }

        public async Task<List<PackagingMaterials>> GetPackagingMaterialsList()
        {
            return await base.GetAllAsync();
        }

        public async Task<int> UpdatePackagingMaterials(PackagingMaterials packagingMaterials)
        {
            return await base.UpdateAsync(packagingMaterials);
        }

        public async Task<PackagingMaterials> BackInfoPackagingMaterials(int packagingMaterialsId)
        {
            return await base.GetModelAsync(packagingMaterialsId);
        }

    }
}
